VERSION 1.0 CLASS
BEGIN
  MultiUse = -1  'True
  Persistable = 0  'NotPersistable
  DataBindingBehavior = 0  'vbNone
  DataSourceBehavior  = 0  'vbNone
  MTSTransactionMode  = 0  'NotAnMTSObject
END
Attribute VB_Name = "LResumen"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = False
Attribute VB_Ext_KEY = "SavedWithClassBuilder6" ,"Yes"
Attribute VB_Ext_KEY = "Top_Level" ,"Yes"
'---------------------------------------------------------------------------------------
' Module    : LResumen
' DateTime  : 30/11/2011 12:41
' Author    :
' Purpose   : Clase Logica Negocio Resumen
'---------------------------------------------------------------------------------------
Option Explicit
Dim dao As DAOResumen
Dim daoParametro As daoParametro
Public Function getBean(ByRef bResumen As bResumen) As Integer
Set dao.Connection = utilConexion
getBean = dao.getBean(bResumen)
End Function
Public Function getResumenRptZ(ByRef breporteZ As breporteZ) As Integer
Set dao.Connection = utilConexion
Set daoParametro.Connection = utilConexion
getResumenRptZ = dao.getResumenRptZ(breporteZ)
End Function
Public Function getResumenRptX(ByRef bResumen As bResumen) As Integer
Set dao.Connection = utilConexion
Set daoParametro.Connection = utilConexion
getResumenRptX = dao.getResumenRptX(bResumen)
End Function
'Public Function getCierreVenta(ByRef bResumen As bResumen) As Integer
'    Set dao.Connection = utilConexion
'    Set daoParametro.Connection = utilConexion
'    getCierreVenta = dao.getCierreVenta(bResumen)
'End Function
Private Sub Class_Initialize()
Set dao = New DAOResumen
Set daoParametro = New daoParametro
End Sub

Public Function generarGuiaVentas(diaTrabajo As Integer) As Integer
Set dao.Connection = utilConexion
Set daoParametro.Connection = utilConexion
generarGuiaVentas = dao.generarGuiaVentas(diaTrabajo)
End Function
